package day01;

/**
 * @author Jetwang
 * @version 1.0
 * @since 2023/3/12 12:06
 */
public class LinkListStackTest {
    public static void main(String[] args) {
        LinkedListStack<Object> stack = new LinkedListStack<>(3);
        stack.push(1);
        stack.push(2);
        stack.push(3);
        stack.forEach(System.out::println);
        System.out.println("=====");

        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
    }
}
